package org.dfzt.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("onl_cgform_field")

public class OnlCgformField implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.UUID)
    private String id;
    private String cgformHeadId;
    private String dbFieldName;
    private String dbFieldTxt;
    private String dbFieldNameOld;
    private Integer dbIsKey;
    private Integer dbIsNull;
    private String dbType;
    private Integer dbLength;
    private Integer dbPointLength;
    private String dbDefaultVal;
    private String dictField;
    private String dictTable;
    private String dictText;
    private String fieldShowType;
    private String fieldHref;
    private Integer fieldLength;
    private String fieldValidType;
    private String fieldMustInput;
    private String fieldExtendJson;
    private String fieldDefaultValue;

    public void setId(String id) {
        this.id = id;
    }

    private Integer isQuery;
    private Integer isShowForm;
    private Integer isShowList;
    private Integer isReadOnly;
    private String queryMode;
    private String mainTable;
    private String mainField;
    private Integer orderNum;
    private String updateBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String createBy;
    private String converter;
    private String queryConfigFlag;
    private String queryDefVal;
    private String queryDictText;
    private String queryDictField;
    private String queryDictTable;
    private String queryShowType;
    private String queryValidType;
    private String queryMustInput;
    private String sortFlag;

    public void setCgformHeadId(String cgformHeadId) {
        this.cgformHeadId = cgformHeadId;
    }

    public void setDbFieldName(String dbFieldName) {
        this.dbFieldName = dbFieldName;
    }

    public void setDbFieldTxt(String dbFieldTxt) {
        this.dbFieldTxt = dbFieldTxt;
    }

    public void setDbFieldNameOld(String dbFieldNameOld) {
        this.dbFieldNameOld = dbFieldNameOld;
    }

    public void setDbIsKey(Integer dbIsKey) {
        this.dbIsKey = dbIsKey;
    }

    public void setDbIsNull(Integer dbIsNull) {
        this.dbIsNull = dbIsNull;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public void setDbLength(Integer dbLength) {
        this.dbLength = dbLength;
    }

    public void setDbPointLength(Integer dbPointLength) {
        this.dbPointLength = dbPointLength;
    }

    public void setDbDefaultVal(String dbDefaultVal) {
        this.dbDefaultVal = dbDefaultVal;
    }

    public void setDictField(String dictField) {
        this.dictField = dictField;
    }

    public void setDictTable(String dictTable) {
        this.dictTable = dictTable;
    }

    public void setDictText(String dictText) {
        this.dictText = dictText;
    }

    public void setFieldShowType(String fieldShowType) {
        this.fieldShowType = fieldShowType;
    }

    public void setFieldHref(String fieldHref) {
        this.fieldHref = fieldHref;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public void setFieldValidType(String fieldValidType) {
        this.fieldValidType = fieldValidType;
    }

    public void setFieldMustInput(String fieldMustInput) {
        this.fieldMustInput = fieldMustInput;
    }

    public void setFieldExtendJson(String fieldExtendJson) {
        this.fieldExtendJson = fieldExtendJson;
    }

    public void setFieldDefaultValue(String fieldDefaultValue) {
        this.fieldDefaultValue = fieldDefaultValue;
    }

    public void setIsQuery(Integer isQuery) {
        this.isQuery = isQuery;
    }

    public void setIsShowForm(Integer isShowForm) {
        this.isShowForm = isShowForm;
    }

    public void setIsShowList(Integer isShowList) {
        this.isShowList = isShowList;
    }

    public void setIsReadOnly(Integer isReadOnly) {
        this.isReadOnly = isReadOnly;
    }

    public void setQueryMode(String queryMode) {
        this.queryMode = queryMode;
    }

    public void setMainTable(String mainTable) {
        this.mainTable = mainTable;
    }

    public void setMainField(String mainField) {
        this.mainField = mainField;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setConverter(String converter) {
        this.converter = converter;
    }

    public void setQueryConfigFlag(String queryConfigFlag) {
        this.queryConfigFlag = queryConfigFlag;
    }

    public void setQueryDefVal(String queryDefVal) {
        this.queryDefVal = queryDefVal;
    }

    public void setQueryDictText(String queryDictText) {
        this.queryDictText = queryDictText;
    }

    public void setQueryDictField(String queryDictField) {
        this.queryDictField = queryDictField;
    }

    public void setQueryDictTable(String queryDictTable) {
        this.queryDictTable = queryDictTable;
    }

    public void setQueryShowType(String queryShowType) {
        this.queryShowType = queryShowType;
    }

    public void setQueryValidType(String queryValidType) {
        this.queryValidType = queryValidType;
    }

    public void setQueryMustInput(String queryMustInput) {
        this.queryMustInput = queryMustInput;
    }

    public void setSortFlag(String sortFlag) {
        this.sortFlag = sortFlag;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof OnlCgformField)) return false;
        OnlCgformField onlCgformField = (OnlCgformField) o;
        if (!onlCgformField.canEqual(this)) return false;
        String str1 = getId(), str2 = onlCgformField.getId();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false;
        String str3 = getCgformHeadId(), str4 = onlCgformField.getCgformHeadId();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false;
        String str5 = getDbFieldName(), str6 = onlCgformField.getDbFieldName();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false;
        String str7 = getDbFieldTxt(), str8 = onlCgformField.getDbFieldTxt();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false;
        String str9 = getDbFieldNameOld(), str10 = onlCgformField.getDbFieldNameOld();
        if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false;
        Integer integer1 = getDbIsKey(), integer2 = onlCgformField.getDbIsKey();
        if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false;
        Integer integer3 = getDbIsNull(), integer4 = onlCgformField.getDbIsNull();
        if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false;
        String str11 = getDbType(), str12 = onlCgformField.getDbType();
        if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false;
        Integer integer5 = getDbLength(), integer6 = onlCgformField.getDbLength();
        if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false;
        Integer integer7 = getDbPointLength(), integer8 = onlCgformField.getDbPointLength();
        if ((integer7 == null) ? (integer8 != null) : !integer7.equals(integer8)) return false;
        String str13 = getDbDefaultVal(), str14 = onlCgformField.getDbDefaultVal();
        if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false;
        String str15 = getDictField(), str16 = onlCgformField.getDictField();
        if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false;
        String str17 = getDictTable(), str18 = onlCgformField.getDictTable();
        if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false;
        String str19 = getDictText(), str20 = onlCgformField.getDictText();
        if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false;
        String str21 = getFieldShowType(), str22 = onlCgformField.getFieldShowType();
        if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false;
        String str23 = getFieldHref(), str24 = onlCgformField.getFieldHref();
        if ((str23 == null) ? (str24 != null) : !str23.equals(str24)) return false;
        Integer integer9 = getFieldLength(), integer10 = onlCgformField.getFieldLength();
        if ((integer9 == null) ? (integer10 != null) : !integer9.equals(integer10)) return false;
        String str25 = getFieldValidType(), str26 = onlCgformField.getFieldValidType();
        if ((str25 == null) ? (str26 != null) : !str25.equals(str26)) return false;
        String str27 = getFieldMustInput(), str28 = onlCgformField.getFieldMustInput();
        if ((str27 == null) ? (str28 != null) : !str27.equals(str28)) return false;
        String str29 = getFieldExtendJson(), str30 = onlCgformField.getFieldExtendJson();
        if ((str29 == null) ? (str30 != null) : !str29.equals(str30)) return false;
        String str31 = getFieldDefaultValue(), str32 = onlCgformField.getFieldDefaultValue();
        if ((str31 == null) ? (str32 != null) : !str31.equals(str32)) return false;
        Integer integer11 = getIsQuery(), integer12 = onlCgformField.getIsQuery();
        if ((integer11 == null) ? (integer12 != null) : !integer11.equals(integer12)) return false;
        Integer integer13 = getIsShowForm(), integer14 = onlCgformField.getIsShowForm();
        if ((integer13 == null) ? (integer14 != null) : !integer13.equals(integer14)) return false;
        Integer integer15 = getIsShowList(), integer16 = onlCgformField.getIsShowList();
        if ((integer15 == null) ? (integer16 != null) : !integer15.equals(integer16)) return false;
        Integer integer17 = getIsReadOnly(), integer18 = onlCgformField.getIsReadOnly();
        if ((integer17 == null) ? (integer18 != null) : !integer17.equals(integer18)) return false;
        String str33 = getQueryMode(), str34 = onlCgformField.getQueryMode();
        if ((str33 == null) ? (str34 != null) : !str33.equals(str34)) return false;
        String str35 = getMainTable(), str36 = onlCgformField.getMainTable();
        if ((str35 == null) ? (str36 != null) : !str35.equals(str36)) return false;
        String str37 = getMainField(), str38 = onlCgformField.getMainField();
        if ((str37 == null) ? (str38 != null) : !str37.equals(str38)) return false;
        Integer integer19 = getOrderNum(), integer20 = onlCgformField.getOrderNum();
        if ((integer19 == null) ? (integer20 != null) : !integer19.equals(integer20)) return false;
        String str39 = getUpdateBy(), str40 = onlCgformField.getUpdateBy();
        if ((str39 == null) ? (str40 != null) : !str39.equals(str40)) return false;
        Date date1 = getUpdateTime(), date2 = onlCgformField.getUpdateTime();
        if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false;
        Date date3 = getCreateTime(), date4 = onlCgformField.getCreateTime();
        if ((date3 == null) ? (date4 != null) : !date3.equals(date4)) return false;
        String str41 = getCreateBy(), str42 = onlCgformField.getCreateBy();
        if ((str41 == null) ? (str42 != null) : !str41.equals(str42)) return false;
        String str43 = getConverter(), str44 = onlCgformField.getConverter();
        if ((str43 == null) ? (str44 != null) : !str43.equals(str44)) return false;
        String str45 = getQueryConfigFlag(), str46 = onlCgformField.getQueryConfigFlag();
        if ((str45 == null) ? (str46 != null) : !str45.equals(str46)) return false;
        String str47 = getQueryDefVal(), str48 = onlCgformField.getQueryDefVal();
        if ((str47 == null) ? (str48 != null) : !str47.equals(str48)) return false;
        String str49 = getQueryDictText(), str50 = onlCgformField.getQueryDictText();
        if ((str49 == null) ? (str50 != null) : !str49.equals(str50)) return false;
        String str51 = getQueryDictField(), str52 = onlCgformField.getQueryDictField();
        if ((str51 == null) ? (str52 != null) : !str51.equals(str52)) return false;
        String str53 = getQueryDictTable(), str54 = onlCgformField.getQueryDictTable();
        if ((str53 == null) ? (str54 != null) : !str53.equals(str54)) return false;
        String str55 = getQueryShowType(), str56 = onlCgformField.getQueryShowType();
        if ((str55 == null) ? (str56 != null) : !str55.equals(str56)) return false;
        String str57 = getQueryValidType(), str58 = onlCgformField.getQueryValidType();
        if ((str57 == null) ? (str58 != null) : !str57.equals(str58)) return false;
        String str59 = getQueryMustInput(), str60 = onlCgformField.getQueryMustInput();
        if ((str59 == null) ? (str60 != null) : !str59.equals(str60)) return false;
        String str61 = getSortFlag(), str62 = onlCgformField.getSortFlag();
        return !((str61 == null) ? (str62 != null) : !str61.equals(str62));
    }

    protected boolean canEqual(Object other) {
        return other instanceof OnlCgformField;
    }

    @Override
    public String toString() {
        return "OnlCgformField(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", dbFieldName=" + getDbFieldName() + ", dbFieldTxt=" + getDbFieldTxt() + ", dbFieldNameOld=" + getDbFieldNameOld() + ", dbIsKey=" + getDbIsKey() + ", dbIsNull=" + getDbIsNull() + ", dbType=" + getDbType() + ", dbLength=" + getDbLength() + ", dbPointLength=" + getDbPointLength() + ", dbDefaultVal=" + getDbDefaultVal() + ", dictField=" + getDictField() + ", dictTable=" + getDictTable() + ", dictText=" + getDictText() + ", fieldShowType=" + getFieldShowType() + ", fieldHref=" + getFieldHref() + ", fieldLength=" + getFieldLength() + ", fieldValidType=" + getFieldValidType() + ", fieldMustInput=" + getFieldMustInput() + ", fieldExtendJson=" + getFieldExtendJson() + ", fieldDefaultValue=" + getFieldDefaultValue() + ", isQuery=" + getIsQuery() + ", isShowForm=" + getIsShowForm() + ", isShowList=" + getIsShowList() + ", isReadOnly=" + getIsReadOnly() + ", queryMode=" + getQueryMode() + ", mainTable=" + getMainTable() + ", mainField=" + getMainField() + ", orderNum=" + getOrderNum() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", createTime=" + getCreateTime() + ", createBy=" + getCreateBy() + ", converter=" + getConverter() + ", queryConfigFlag=" + getQueryConfigFlag() + ", queryDefVal=" + getQueryDefVal() + ", queryDictText=" + getQueryDictText() + ", queryDictField=" + getQueryDictField() + ", queryDictTable=" + getQueryDictTable() + ", queryShowType=" + getQueryShowType() + ", queryValidType=" + getQueryValidType() + ", queryMustInput=" + getQueryMustInput() + ", sortFlag=" + getSortFlag() + ")";
    }


    public String getId() {
        return this.id;
    }

    public String getCgformHeadId() {
        return this.cgformHeadId;
    }

    public String getDbFieldName() {
        return this.dbFieldName;
    }

    public String getDbFieldTxt() {
        return this.dbFieldTxt;
    }

    public String getDbFieldNameOld() {
        return this.dbFieldNameOld;
    }

    public Integer getDbIsKey() {
        return this.dbIsKey;
    }

    public Integer getDbIsNull() {
        return this.dbIsNull;
    }

    public String getDbType() {
        return this.dbType;
    }

    public Integer getDbLength() {
        return this.dbLength;
    }

    public Integer getDbPointLength() {
        return this.dbPointLength;
    }

    public String getDbDefaultVal() {
        return this.dbDefaultVal;
    }

    public String getDictField() {
        return this.dictField;
    }

    public String getDictTable() {
        return this.dictTable;
    }

    public String getDictText() {
        return this.dictText;
    }

    public String getFieldShowType() {
        return this.fieldShowType;
    }

    public String getFieldHref() {
        return this.fieldHref;
    }

    public Integer getFieldLength() {
        return this.fieldLength;
    }

    public String getFieldValidType() {
        return this.fieldValidType;
    }

    public String getFieldMustInput() {
        return this.fieldMustInput;
    }

    public String getFieldExtendJson() {
        return this.fieldExtendJson;
    }


    public String getFieldDefaultValue() {
        return this.fieldDefaultValue;
    }

    public Integer getIsQuery() {
        return this.isQuery;
    }

    public Integer getIsShowForm() {
        return this.isShowForm;
    }

    public Integer getIsShowList() {
        return this.isShowList;
    }

    public Integer getIsReadOnly() {
        return this.isReadOnly;
    }

    public String getQueryMode() {
        return this.queryMode;
    }

    public String getMainTable() {
        return this.mainTable;
    }

    public String getMainField() {
        return this.mainField;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }


    public Date getUpdateTime() {
        return this.updateTime;
    }


    public Date getCreateTime() {
        return this.createTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public String getConverter() {
        return this.converter;
    }


    public String getQueryConfigFlag() {
        return this.queryConfigFlag;
    }


    public String getQueryDefVal() {
        return this.queryDefVal;
    }


    public String getQueryDictText() {
        return this.queryDictText;
    }


    public String getQueryDictField() {
        return this.queryDictField;
    }


    public String getQueryDictTable() {
        return this.queryDictTable;
    }


    public String getQueryShowType() {
        return this.queryShowType;
    }


    public String getQueryValidType() {
        return this.queryValidType;
    }


    public String getQueryMustInput() {
        return this.queryMustInput;
    }


    public String getSortFlag() {
        return this.sortFlag;
    }
}
